/**
 * Created by IntelliJ IDEA.
 * User: Tuan Duong
 * Date: Jan 18, 2011
 * Time: 1:31:51 PM
 */

    $(document).ready(function() {
        $(".navigation li").hover(function(){
            $(this).addClass("hover");
            $("ul", this).fadeIn("fast");
        }, function(){
            $(this).removeClass("hover");
        });
        $(".navigation li ul li").css("width", "130px");
        if (document.all) {
            alert("oh yeah");
            $(".navigation li").hoverClass("hover");
            $(".navigation li ul li").css("width", "120px");
        }
    });

    $.fn.hoverClass = function(c){
        return this.each(function(){
            $(this).hover(function(){
                $(this).addClass(c);
            }, function(){
                $(this).removeClass(c);
            });
        });
    };
